﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace WP7CattoFreeApp
{
    public partial class CattoMainMenu : PhoneApplicationPage
    {
        public CattoMainMenu()
        {
            InitializeComponent();

            SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape;


            this.BackKeyPress += new
EventHandler<System.ComponentModel.CancelEventArgs>(MainPage_BackKeyPress);

        }

        #region "Events"

        /// <summary> - Btn Home will navigate to MainPage.xaml
        /// BtnHome
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnHome_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));
        }

        /// <summary> event _BackKEyPress  -- Back Key Pressed Event
        /// Back Key Pressed Event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void MainPage_BackKeyPress(object sender, System.ComponentModel.CancelEventArgs e)
        {
            txtblkOrientation.Text = "Back Key Pressed!";
            //NavigationService.Navigate(new Uri("/CattoMainMenu.xaml", UriKind.Relative));
            e.Cancel = true;
        }


        /// <summary> btn to change page to Profile Page
        /// btn to change page to Profile Page
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnProfilePage_Click_1(object sender, RoutedEventArgs e)
        {
            //NavigationService.Navigate(new Uri("/CattoMainMenu.xaml", UriKind.Relative));
            NavigationService.Navigate(new Uri("/Profile.xaml", UriKind.Relative));
        }



        /// <summary> Button to click to naviage to Login page
        /// Button to click to naviage to Login page
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnLogin_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Login.xaml", UriKind.Relative));
        }

        private void btnMedia_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/K8MediaElement.xaml", UriKind.Relative));
        }

        private void btnTwitter_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/ccattoTwitter.xaml", UriKind.Relative));
        }

        private void btnAppBar_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/k8AppBar.xaml", UriKind.Relative));

        }

        private void btnScrollingPage_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/pageScrollingMenu.xaml", UriKind.Relative));

            

        }

        private void btnRSSK8_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/pgRSSReaderEx.xaml", UriKind.Relative));
        }

        private void btnTrial_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/pgTrialPage.xaml", UriKind.Relative));
        }

        private void btnBABBlendAppBar_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/pgBlendAppBar.xaml", UriKind.Relative));
        }

        private void btnPanos_Click(object sender, RoutedEventArgs e)
        {
            //pgPanoramaPage1.xaml
            NavigationService.Navigate(new Uri("/pgPanoramaPage1.xaml", UriKind.Relative));
        }

        private void btnPivot_Click(object sender, RoutedEventArgs e)
        {
            //pgPivot.xaml
            NavigationService.Navigate(new Uri("/pgPivot.xaml", UriKind.Relative));
        }

        // end Events
        #endregion 






    }
}